package com.cll.learn.monitor.task;

import com.cll.learn.monitor.bean.MethodInvokeInfo;
import com.cll.learn.monitor.util.TopPercentileUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * 描述信息:
 *
 * @author CLL
 * @version 1.0
 * @date 2020/10/10 13:41
 */
public class ClearOvertimeTopPercentileTask implements Runnable {

    private static final Logger LOGGER = LoggerFactory.getLogger(ClearOvertimeTopPercentileTask.class);


    @Override
    public void run() {
        LOGGER.info("===>>> 开始清理过期的请求信息");
        TopPercentileUtil.clearOvertimeMethodInvokeInfoFromMap();
        LOGGER.info("===>>> 清理过是的请求信息完成");
    }
}
